package com.dfbz.demo02_权限修饰符和方法重写;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo01 {

    public static void main(String[] args) {

        Zi zi=new Zi();
        zi.method();
    }
}


class Fu {

   public void method() {
        System.out.println("fu");
    }

}

class Zi extends Fu {

   public void method(){
        System.out.println("zi");
    }

}